import { defineStore } from 'pinia';

export const useAppStore = defineStore('app', {
    state: () => ({
        sidebarOpen: true
    }),
    actions: {
        M_toggleSideBar() {
            this.$patch((state) => {
                state.sidebarOpen = !state.sidebarOpen
            })
        },
    }
})